package org.crazyit.activiti_d3._1_History;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;

public class History_Activity {

    public static void main(String[] args) {

        //1. 读取schemaUpdate-false.xml 文件, 并创建流程引擎配置实例
        ProcessEngineConfiguration config = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("schemaUpdate-true.xml");

        //2. 设置history 属性值为Activity
        config.setHistory("activity");

        //3. 启动Activiti
        ProcessEngine engine = config.buildProcessEngine();

        //4. 关闭Activiti
        engine.close();


    }

}
